package com.xdf.whiteaccount.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xdf.whiteaccount.entity.GjrkbilldraftCpDetail;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 由 chanchaw 创建于 2023-12-7 10:44:43，实现功能如下：
 * 1. 实现接口 Serializable
 * 2. 无参构造函数
 * 3. 建造者模式
 * 4. getter,setter,toString()
 * 
 */
public class GjrkbillCpDTO implements Serializable {
    public GjrkbillCpDTO() {}
    private static final long serialVersionUID = 1L;

    private Integer bItemID;//
    private Long bID;//
    private BigDecimal bGJ;//
    private BigDecimal bMS;//
    private String bAorB;//
    private String bJTH;//
    private String bClass;//
    private String bDJPeople;//
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private java.util.Date bDate;//
    private String bCN;//
    private String bIP;//
    private String bBCFC;//
    private Integer bPH;//
    private String bEDP;//
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private java.util.Date bDTRK;//
    private Integer bFPDID;//
    private Integer bUpload;//
    private String bBarcode;//细码单入库编号，关联g_jrkbillxmdnumber，此表中存放细码单二维码
    private String batchNum;//
    private String bZGStyle;//管材类型
    private Integer bJrkbilldraftitemid;//草稿表主键，二维码生成时存入的内容为草稿表主键数据
    private Integer scanId;//扫描主键=scan_list.id
    private Integer convertBc;//转本厂(1：是，0：否)
    private List<GjrkbilldraftCpDetail> detailList;

    public List<GjrkbilldraftCpDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<GjrkbilldraftCpDetail> detailList) {
        this.detailList = detailList;
    }

    public String getbDJPeople() {
        return bDJPeople;
    }

    public void setbDJPeople(String bDJPeople) {
        this.bDJPeople = bDJPeople;
    }

    public BigDecimal getbMS() {
        return bMS;
    }

    public void setbMS(BigDecimal bMS) {
        this.bMS = bMS;
    }

    public Integer getbItemID() {
        return bItemID;
    }

    public void setbItemID(Integer bItemID) {
        this.bItemID = bItemID;
    }

    public Long getbID() {
        return bID;
    }

    public void setbID(Long bID) {
        this.bID = bID;
    }

    public BigDecimal getbGJ() {
        return bGJ;
    }

    public void setbGJ(BigDecimal bGJ) {
        this.bGJ = bGJ;
    }

    public String getbAorB() {
        return bAorB;
    }

    public void setbAorB(String bAorB) {
        this.bAorB = bAorB;
    }

    public String getbJTH() {
        return bJTH;
    }

    public void setbJTH(String bJTH) {
        this.bJTH = bJTH;
    }

    public String getbClass() {
        return bClass;
    }

    public void setbClass(String bClass) {
        this.bClass = bClass;
    }

    public Date getbDate() {
        return bDate;
    }

    public void setbDate(Date bDate) {
        this.bDate = bDate;
    }

    public String getbCN() {
        return bCN;
    }

    public void setbCN(String bCN) {
        this.bCN = bCN;
    }

    public String getbIP() {
        return bIP;
    }

    public void setbIP(String bIP) {
        this.bIP = bIP;
    }

    public String getbBCFC() {
        return bBCFC;
    }

    public void setbBCFC(String bBCFC) {
        this.bBCFC = bBCFC;
    }

    public Integer getbPH() {
        return bPH;
    }

    public void setbPH(Integer bPH) {
        this.bPH = bPH;
    }

    public String getbEDP() {
        return bEDP;
    }

    public void setbEDP(String bEDP) {
        this.bEDP = bEDP;
    }

    public Date getbDTRK() {
        return bDTRK;
    }

    public void setbDTRK(Date bDTRK) {
        this.bDTRK = bDTRK;
    }

    public Integer getbFPDID() {
        return bFPDID;
    }

    public void setbFPDID(Integer bFPDID) {
        this.bFPDID = bFPDID;
    }

    public Integer getbUpload() {
        return bUpload;
    }

    public void setbUpload(Integer bUpload) {
        this.bUpload = bUpload;
    }

    public String getbBarcode() {
        return bBarcode;
    }

    public void setbBarcode(String bBarcode) {
        this.bBarcode = bBarcode;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public String getbZGStyle() {
        return bZGStyle;
    }

    public void setbZGStyle(String bZGStyle) {
        this.bZGStyle = bZGStyle;
    }

    public Integer getbJrkbilldraftitemid() {
        return bJrkbilldraftitemid;
    }

    public void setbJrkbilldraftitemid(Integer bJrkbilldraftitemid) {
        this.bJrkbilldraftitemid = bJrkbilldraftitemid;
    }

    public Integer getScanId() {
        return scanId;
    }

    public void setScanId(Integer scanId) {
        this.scanId = scanId;
    }

    public Integer getConvertBc() {
        return convertBc;
    }

    public void setConvertBc(Integer convertBc) {
        this.convertBc = convertBc;
    }

    @Override
    public String toString() {
        return "GjrkbillCp{" +
        ",bItemID='" + bItemID + '\'' +
        ",bID='" + bID + '\'' +
        ",bGJ='" + bGJ + '\'' +
        ",bAorB='" + bAorB + '\'' +
        ",bJTH='" + bJTH + '\'' +
        ",bClass='" + bClass + '\'' +
        ",bDate='" + bDate + '\'' +
        ",bCN='" + bCN + '\'' +
        ",bIP='" + bIP + '\'' +
        ",bBCFC='" + bBCFC + '\'' +
        ",bPH='" + bPH + '\'' +
        ",bEDP='" + bEDP + '\'' +
        ",bDTRK='" + bDTRK + '\'' +
        ",bFPDID='" + bFPDID + '\'' +
        ",bUpload='" + bUpload + '\'' +
        ",bBarcode='" + bBarcode + '\'' +
        ",batchNum='" + batchNum + '\'' +
        ",bZGStyle='" + bZGStyle + '\'' +
        ",bJrkbilldraftitemid='" + bJrkbilldraftitemid + '\'' +
        ",scanId='" + scanId + '\'' +
        '}';
    }

    public static class Builder{
        private Integer bItemID;
        private Long bID;
        private BigDecimal bGJ;
        private String bAorB;
        private String bJTH;
        private String bClass;
        private java.util.Date bDate;
        private String bCN;
        private String bIP;
        private String bBCFC;
        private Integer bPH;
        private String bEDP;
        private java.util.Date bDTRK;
        private Integer bFPDID;
        private Integer bUpload;
        private String bBarcode;
        private String batchNum;
        private String bZGStyle;
        private Integer bJrkbilldraftitemid;
        private Integer scanId;

        public Builder bItemID(Integer bItemID){this.bItemID = bItemID;return this;}
        public Builder bID(Long bID){this.bID = bID;return this;}
        public Builder bGJ(BigDecimal bGJ){this.bGJ = bGJ;return this;}
        public Builder bAorB(String bAorB){this.bAorB = bAorB;return this;}
        public Builder bJTH(String bJTH){this.bJTH = bJTH;return this;}
        public Builder bClass(String bClass){this.bClass = bClass;return this;}
        public Builder bDate(java.util.Date bDate){this.bDate = bDate;return this;}
        public Builder bCN(String bCN){this.bCN = bCN;return this;}
        public Builder bIP(String bIP){this.bIP = bIP;return this;}
        public Builder bBCFC(String bBCFC){this.bBCFC = bBCFC;return this;}
        public Builder bPH(Integer bPH){this.bPH = bPH;return this;}
        public Builder bEDP(String bEDP){this.bEDP = bEDP;return this;}
        public Builder bDTRK(java.util.Date bDTRK){this.bDTRK = bDTRK;return this;}
        public Builder bFPDID(Integer bFPDID){this.bFPDID = bFPDID;return this;}
        public Builder bUpload(Integer bUpload){this.bUpload = bUpload;return this;}
        public Builder bBarcode(String bBarcode){this.bBarcode = bBarcode;return this;}
        public Builder batchNum(String batchNum){this.batchNum = batchNum;return this;}
        public Builder bZGStyle(String bZGStyle){this.bZGStyle = bZGStyle;return this;}
        public Builder bJrkbilldraftitemid(Integer bJrkbilldraftitemid){this.bJrkbilldraftitemid = bJrkbilldraftitemid;return this;}
        public Builder scanId(Integer scanId){this.scanId = scanId;return this;}
        public GjrkbillCpDTO build(){
            return new GjrkbillCpDTO(this);
        }
    }

    public static Builder builder(){return new Builder();}
    public GjrkbillCpDTO(Builder builder){
        this.bItemID = builder.bItemID;
        this.bID = builder.bID;
        this.bGJ = builder.bGJ;
        this.bAorB = builder.bAorB;
        this.bJTH = builder.bJTH;
        this.bClass = builder.bClass;
        this.bDate = builder.bDate;
        this.bCN = builder.bCN;
        this.bIP = builder.bIP;
        this.bBCFC = builder.bBCFC;
        this.bPH = builder.bPH;
        this.bEDP = builder.bEDP;
        this.bDTRK = builder.bDTRK;
        this.bFPDID = builder.bFPDID;
        this.bUpload = builder.bUpload;
        this.bBarcode = builder.bBarcode;
        this.batchNum = builder.batchNum;
        this.bZGStyle = builder.bZGStyle;
        this.bJrkbilldraftitemid = builder.bJrkbilldraftitemid;
        this.scanId = builder.scanId;
    }
    /**
     * 自定义代码请写在此处之后
     */
}
